// pages/notice/notice.js
var app = getApp();
var util = require('../../utils/util.js')
Page({

  /**
   * 页面的初始数据
   */
  data: {
    content:'',
    title:''
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var that = this;
    app.request.postHeadForm('hgz/notice/showById/' + options.noticeId).then(res => {
      that.setData({
        content: res.data.content,
        title: res.data.title
      })
    })
  }
})